package com.cody.service;

import com.cody.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 董鹏超
 */
public interface StudentService {
    /**
     *
     * @return
     */
    List<Student> findAll();

    List<Student> queryAllStudent();
    boolean delStudentByStudentId(Integer studentId);

    /**
     *
     * @param stuName
     * @param stuPassword
     * @return
     */
   Student querySingleStudent(String studentNumber,String studentPassword);
    List<Student> queryStudentByKeyword(String keyword);
    Student querySingleStudentByStudentNumber( String studentNumber);
    boolean insertSingleStudent(Student student);

    boolean updateStudentInfo(Student student);
    boolean updateStudentPwd(String stuNumber,String password);
}
